package cn.xf;

import java.util.ArrayList;

public class ArrayListTest {

    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        System.out.println(list.size());
        list.add("111");
        list.add("222");
        list.add("333");
        list.add("444");
        System.out.println(list.size());
        list.remove(1);
        System.out.println(list.size());
        //System.out.println(list.get(3));数组越界
    }

}
